<!DOCTYPE html>
<html>
<head>
<title>abs管理系统</title>

<meta name="viewport" content="width=device-width, initial-scale=1.0" />

<!-- bootstrap -->
<link href="/css/bootstrap/bootstrap.css" rel="stylesheet" />
<link href="/css/bootstrap/bootstrap-responsive.css" rel="stylesheet" />
<link href="/css/bootstrap/bootstrap-overrides.css" type="text/css"
	rel="stylesheet" />

<!-- libraries -->
<link href="/css/lib/bootstrap-wysihtml5.css" type="text/css" rel="stylesheet" />
<link href="/css/lib/uniform.default.css" type="text/css" rel="stylesheet" />
<link href="/css/lib/select2.css" type="text/css" rel="stylesheet" />
<link href="/css/lib/bootstrap.datepicker.css" type="text/css" rel="stylesheet" />
<link href="/css/lib/font-awesome.css" type="text/css" rel="stylesheet" />
<link href="/css/lib/jquery-ui-1.10.2.custom.css" rel="stylesheet" type="text/css" />
<link href="/css/lib/jquery.dataTables.css" type="text/css" rel="stylesheet" />
<link href="/css/lib/dataTable.css" type="text/css" rel="stylesheet" />	

<!-- global styles -->
<link rel="stylesheet" type="text/css" href="/css/layout.css" />
<link rel="stylesheet" type="text/css" href="/css/elements.css" />
<link rel="stylesheet" type="text/css" href="/css/icons.css" />

<!-- this page specific styles -->
<link rel="stylesheet" href="/css/compiled/index.css" type="text/css" media="screen" />    


<!-- this page specific styles -->
<link rel="stylesheet" href="/css/compiled/form-showcase.css"
	type="text/css" media="screen" />

<!-- open sans font -->
<link href='/css/front-googleapis.css' rel='stylesheet' type='text/css' />

<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
</head>
<body>

	<!-- navbar -->
	<div class="navbar navbar-inverse">
		<div class="navbar-inner">
			<button type="button" class="btn btn-navbar visible-phone"
				id="menu-toggler">
				<span class="icon-bar"></span> <span class="icon-bar"></span> <span
					class="icon-bar"></span>
			</button>

			<a class="brand" href="#"><img src="/img/logo.png" /></a>

			<ul class="nav pull-right">
				<li class="hidden-phone"><input class="search" type="text" />
				</li>
				<li class="notification-dropdown hidden-phone"><a href="#"
					class="trigger"> <i class="icon-warning-sign"></i> <span
						class="count"></span>
				</a>
					<div class="pop-dialog">
						<div class="pointer right">
							<div class="arrow"></div>
							<div class="arrow_border"></div>
						</div>
						<div class="body">
							<a href="#" class="close-icon"><i class="icon-remove-sign"></i></a>
							<div class="notifications">
								<h3>0条新消息</h3>
								<a href="#" class="item"> <i class="icon-signin"></i>
									欢迎使用abs管理系统 <span class="time"><i class="icon-time"></i></span>
								</a>
								<div class="footer">
									<a href="#" class="logout">查看所有消息</a>
								</div>
							</div>
						</div>
					</div></li>
				<li class="notification-dropdown hidden-phone"><a href="#"
					class="trigger"> <i class="icon-envelope-alt"></i>
				</a>
					<div class="pop-dialog">
						<div class="pointer right">
							<div class="arrow"></div>
							<div class="arrow_border"></div>
						</div>
						<div class="body">
							<a href="#" class="close-icon"><i class="icon-remove-sign"></i></a>
							<div class="messages">
								<div class="footer">
									<a href="#" class="logout">查看所有信息</a>
								</div>
							</div>
						</div>
					</div></li>
				<li class="dropdown"><a href="#"
					class="dropdown-toggle hidden-phone" data-toggle="dropdown">
						账户信息 <b class="caret"></b>
				</a>
					<ul class="dropdown-menu">
						<li><a href="#">账户详情</a></li>
						<li><a href="#">账户设置</a></li>
						<li><a href="#">账户修改</a></li>
					</ul></li>
				<li class="settings hidden-phone"><a href="#" role="button">
						<i class="icon-cog"></i>
				</a></li>
				<li class="settings hidden-phone"><a href="/admin/logout"
					role="button"> <i class="icon-share-alt"></i>
				</a></li>
			</ul>
		</div>
	</div>
	<!-- end navbar -->

	<!-- sidebar -->
	<div id="sidebar-nav">
		<ul id="dashboard-menu">
			<li id="menu-projectlist" class="active">
				<a href="#" onclick="showProject()"><i
					class="icon-home"></i> <span>项目列表</span>
				</a>
			</li>
			<li id="menu-projectcreate" >
				<a href="#" onclick="createProject()"><i
					class="icon-signal"></i> <span>创建项目</span>
				</a>
			</li>	
			<li id="menu-subprojectlist" >
                <a href="#" onclick="showSubProjectAll()">
                    <i class="icon-group"></i>
                    <span>子项目列表</span>
                </a>			
			</li>						
			<li id="menu-companylist" >
				<a href="#" onclick="showCompany()"><i
					class="icon-home"></i> <span>机构列表</span>
				</a>
			</li>
			<li id="menu-companycreate" >
				<a href="#" onclick="createCompany()"><i
					class="icon-signal"></i> <span>创建机构</span>
				</a>
			</li>	
			<li id="menu-templatelist" >
				<a href="#" onclick="showTemplate()"><i
					class="icon-home"></i> <span>模板列表</span>
				</a>
			</li>
			<li id="menu-templatecreate" >
				<a href="#" onclick="createTemplate()"><i
					class="icon-signal"></i> <span>增加模板</span>
				</a>
			</li>									
		</ul>
	</div>
	<!-- end sidebar -->


	<!-- main container -->
	<div class="content" id="content"></div>
	<!-- end main container -->

	<!-- scripts for this page -->`
	<script src="/js/wysihtml5-0.3.0.js"></script>
	<script src="/js/jquery-latest.js"></script>
	<script src="/js/bootstrap.min.js"></script>
	<script src="/js/bootstrap-wysihtml5-0.0.2.js"></script>
	<script src="/js/bootstrap.datepicker.js"></script>
	<script src="/js/jquery.uniform.min.js"></script>
	<script src="/js/select2.min.js"></script>
	<script src="/js/theme.js"></script>
	<script src="/js/jquery.mustache.js"></script>
	<script src="/js/mustache.js"></script>
	<script src="/js/jquery.dataTables.min.js"></script>
	<script src="/js/ajaxfileupload.js"></script>
	
	<!-- knob -->
    <script src="/js/jquery.knob.js"></script>
    <!-- flot charts -->
    <script src="/js/jquery.flot.js"></script>
    <script src="/js/jquery.flot.stack.js"></script>
    <script src="/js/jquery.flot.resize.js"></script>
	<!-- morrisjs -->
	<script src="/js/raphael-min.js"></script>
    <script src="/js/morris.min.js"></script>
	
	<script src="/js/pokemon.js"></script>
	<script src="/js/abs-project-show.js"></script>
	<script src="/js/abs-project-create.js"></script>
	<script src="/js/abs-subproject-show.js"></script>
	<script src="/js/abs-subproject-create.js"></script>
	<script src="/js/abs-company-show.js"></script>
	<script src="/js/abs-company-create.js"></script>
	<script src="/js/abs-buyer-show.js"></script>
	<script src="/js/abs-buyer-create.js"></script>	
	<script src="/js/abs-template-create.js"></script>	
	<script src="/js/abs-template-show.js"></script>	
	<script src="/js/abs-template-generate.js"></script>
	<!-- call this page plugins -->
	<script type="text/javascript">
	
		function showContent(html,param,initFun){
			$('#content').empty();
			$.Mustache.load(html).done(function() {
				$('#content').mustache('mainVote', param);
				
				$(".select2").select2({
					placeholder : "请选择"
				});

				$('.datepicker').datepicker().on('changeDate', function(ev) {
					$(this).datepicker('hide');
				});

				$(".wysihtml5").wysihtml5({
					"font-styles" : false
				});
				
				if(initFun!=null){
					initFun();
				}	
							
			});
		}
	
		$(function(){

			showProject();

		});
		
		
		function createProject(){
			strongMenu($('#menu-projectcreate'));
			showContent('/view/project-create.html',{},createInit);
		}
		
		function showProject(){
			strongMenu($('#menu-projectlist'));
			showContent('/view/project-show.html',{},allProjectInit);
		}
		
		function showSubProjectAll(){
			strongMenu($('#menu-subprojectlist'));
			showContent('/view/subproject-show.html',{},allSubProjectInit);
		}
		
		function showCompany(){
			strongMenu($('#menu-companylist'));
			showContent('/view/company-show.html',{},showCompanyInit);
		}
		
		function createCompany(){
			strongMenu($('#menu-companycreate'));
			showContent('/view/company-create.html',{},createCompanyInit);
		}

		function showTemplate(){
			strongMenu($('#menu-templatelist'));
			showContent('/view/template-show.html',{},showTemplateInit);
		}
		
		function createTemplate(){
			strongMenu($('#menu-templatecreate'));
			showContent('/view/template-create.html',{},null);
		}
		function strongMenu($li){
			if($li==null){
				return ;
			}
			$('#dashboard-menu').find('li').attr('class','');
			$li.attr('class','active');
		}
	</script>
	<div style="display: none">
		<script src='http://v7.cnzz.com/stat.php?id=155540&web_id=155540'
			language='JavaScript' charset='gb2312'></script>
	</div>
</body>